//
// Created by Asus on 2025/6/2.
//

#include <deque>
#include <iostream>
using namespace std;

void printDeque(const deque<int> & deque) {
    for (auto it = deque.begin(); it != deque.end(); it++) {
        cout << *it << " ";
    }
    cout << endl;
}

void demo01() {
    deque<int> d1;
    for (int i = 0; i < 10; i++) {
        d1.push_back(i);
    }
    printDeque(d1);

    deque<int> d2(d1.begin(), d1.end());
    printDeque(d2);

    deque<int> d3(10, 100);
    printDeque(d3);

    auto d4 = d3;
    printDeque(d4);
}

int main(int argc, char *argv[]) {
    demo01();
    return 0;
}
